﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore.Metadata.Internal;

namespace System.Repository.DataBase.Models
{
    /// <summary>
    /// 用户表
    /// </summary>
    public partial class Sys_User
    {
        public Sys_User()
        {
           // this.Sys_UserLogOn = new HashSet<Sys_UserLogOn>();
        }

        /// <summary>
        /// 用户主键
        /// </summary> 
        [Key]
        public string Id { get; set; }
        /// <summary>
        /// 账户
        /// </summary>  
        public string Account { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>  
        public string RealName { get; set; }
        /// <summary>
        /// 呢称
        /// </summary>  
        public string NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>  
        public string HeadIcon { get; set; }
        /// <summary>
        /// 性别
        /// </summary>  
        [Column(TypeName = "bit")]
        public bool? Gender { get; set; }
        /// <summary>
        /// 生日
        /// </summary>  
        public Nullable<System.DateTime> Birthday { get; set; }
        /// <summary>
        /// 手机
        /// </summary>  
        public string MobilePhone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>  
        public string Email { get; set; }
        /// <summary>
        /// 微信
        /// </summary>  
        public string WeChat { get; set; }
        /// <summary>
        /// 安全级别
        /// </summary>  
        public Nullable<int> SecurityLevel { get; set; }
        /// <summary>
        /// 个性签名
        /// </summary>  
        public string Signature { get; set; }
        /// <summary>
        /// 组织主键
        /// </summary>  
        public string OrganizeId { get; set; }
        /// <summary>
        /// 部门主键
        /// </summary>  
        public string DepartmentId { get; set; }
        /// <summary>
        /// 职位主键
        /// </summary>  
        public string WorkId { get; set; }
        /// <summary>
        /// 角色
        /// </summary>  
        public string RoleId { get; set; }
        /// <summary>
        /// 是否管理员
        /// </summary>  
        [Column(TypeName = "bit")]
        public bool? IsAdministrator { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>  
     
        public Nullable<int> SortCode { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>  
        [Column(TypeName = "bit")]
        public Nullable<bool> DeleteMark { get; set; }
        /// <summary>
        /// 有效标志
        /// </summary>  
        [Column(TypeName = "bit")]
        public Nullable<bool> EnabledMark { get; set; }
        /// <summary>
        /// 描述
        /// </summary>  
        public string Description { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>  
        public Nullable<System.DateTime> CreatorTime { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>  
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>  
        public Nullable<System.DateTime> LastModifyTime { get; set; }
        /// <summary>
        /// 最后修改用户
        /// </summary>  
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>  
        public Nullable<System.DateTime> DeleteTime { get; set; }
        /// <summary>
        /// 删除用户
        /// </summary>  
        public string DeleteUserId { get; set; }
 
    }
}
